﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8" />
		<title>员工管理页面</title>
		<meta name="keywords" content="日志分析展示系统" />
		<meta name="description" content="日志分析展示系统" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<!-- basic styles -->
		<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="assets/css/font-awesome.min.css" />

		<!--[if IE 7]>
		  <link rel="stylesheet" href="assets/css/font-awesome-ie7.min.css" />
		<![endif]-->

		<!-- page specific plugin styles -->

		<!-- fonts -->

		<link rel="stylesheet" href="assets\css\cyrillic.css" />

		<!-- ace styles -->

		<link rel="stylesheet" href="assets/css/ace.min.css" />
		<link rel="stylesheet" href="assets/css/ace-rtl.min.css" />
		<link rel="stylesheet" href="assets/css/ace-skins.min.css" />

		<!--[if lte IE 8]>
		  <link rel="stylesheet" href="assets/css/ace-ie.min.css" />
		<![endif]-->

		<!-- inline styles related to this page -->

		<!-- ace settings handler -->

		<script src="assets/js/ace-extra.min.js"></script>

		<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->

		<!--[if lt IE 9]>
		<script src="assets/js/html5shiv.js"></script>
		<script src="assets/js/respond.min.js"></script>
		<![endif]-->
		
		<!-- 标签页logo -->
		<link rel="shortcut icon" href="img/logo2.ico" />
		<!-- 引入dataTables.css -->
		<link href="css/jquery.dataTables.css"/>
	</head>

	<body>
		<div class="navbar navbar-default" id="navbar">
			<script type="text/javascript">
				try{ace.settings.check('navbar' , 'fixed')}catch(e){}
			</script>

			<!-- 顶部导航栏 -->
			<div class="navbar-container" id="navbar-container">
				<div class="navbar-header pull-left">
					<a href="#" class="navbar-brand">
						<small>
							<i class="icon-leaf"></i>
							36组美发POS系统
						</small>
					</a><!-- /.brand -->
				</div><!-- /.navbar-header -->
				
				<div class="navbar-header pull-right" role="navigation">
					
					<ul class="nav ace-nav">
						<!-- 导航栏右侧用户头像 -->
						<li class="light-blue">
							<a data-toggle="dropdown" href="#" class="dropdown-toggle">
								<img class="nav-user-photo" src="assets/avatars/user.jpg" alt="Jason's Photo" />
								<span class="user-info">
									<small>欢迎</small>
									<shiro:authenticated>  
									    <shiro:principal/>
									</shiro:authenticated>
								</span>

								<i class="icon-caret-down"></i>
							</a>

							<ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
								<li>
									<a href="#">
										<i class="icon-cog"></i>
										设置
									</a>
								</li>

								<li>
									<a href="#">
										<i class="icon-user"></i>
										个人资料
									</a>
								</li>

								<li class="divider"></li>

								<li>
									<a href="logout.action">
										<i class="icon-off"></i>
										退出
									</a>
								</li>
							</ul>
						</li>
					</ul><!-- /.ace-nav -->
				</div><!-- /.navbar-header -->
			</div><!-- /.container -->
		</div>
		<!-- 导航栏结束 -->

		<div class="main-container" id="main-container">
			<script type="text/javascript">
				try{ace.settings.check('main-container' , 'fixed')}catch(e){}
			</script>

			<div class="main-container-inner">
				<a class="menu-toggler" id="menu-toggler" href="#">
					<span class="menu-text"></span>
				</a>

				<!-- 侧边栏 -->
				<div class="sidebar" id="sidebar">
					<script type="text/javascript">
						try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
					</script>
					<!-- 4个button按钮 -->
					<div class="sidebar-shortcuts" id="sidebar-shortcuts">
						<div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
							<button class="btn btn-success">
								<i class="icon-signal"></i>
							</button>

							<button class="btn btn-info">
								<i class="icon-pencil"></i>
							</button>

							<button class="btn btn-warning">
								<i class="icon-group"></i>
							</button>

							<button class="btn btn-danger">
								<i class="icon-cogs"></i>
							</button>
						</div>

						<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
							<span class="btn btn-success"></span>

							<span class="btn btn-info"></span>

							<span class="btn btn-warning"></span>

							<span class="btn btn-danger"></span>
						</div>
					</div><!-- #sidebar-shortcuts -->
					<!-- 侧边栏开始 -->
					<ul class="nav nav-list">
						<!-- class="active"会有蓝色三角形效果 -->
						<li>
							<a href="index.jsp">
								<i class="icon-dashboard"></i>
								<span class="menu-text"> 控制台 </span>
							</a>
						</li>

						<li>
							<a href="storeInfo.jsp">
								<i class="icon-home"></i>
								<span class="menu-text"> 店铺信息 </span>
							</a>
						</li>

						<li>
							<a href="#" class="dropdown-toggle">
								<i class="icon-desktop"></i>
								<span class="menu-text"> 服务管理 </span>

								<b class="arrow icon-angle-down"></b>
							</a>

							<ul class="submenu">
								<li>
									<a href="showSC.jsp">
										<i class="icon-double-angle-right"></i>

										服务类型管理
									</a>
								</li>
								
								<li>
									<a href="showSer.jsp">
										<i class="icon-double-angle-right"></i>

										具体服务管理
									</a>
								</li>
							
							</ul> 
						</li> 
						
						<li>
							<a href="product.jsp">
								<i class="icon-bar-chart"></i>
								<span class="menu-text"> 产品管理 </span>
							</a>
						</li>
						
						<li class="active">
							<a href="employee.jsp">
								<i class="icon-book"></i>
								<span class="menu-text"> 员工管理 </span>
							</a>
						</li>

						<li>
							<a href="vip.jsp" class="dropdown-toggle">
								<i class="icon-group"></i>
								<span class="menu-text"> 会员管理 </span>
							</a>
						</li>
						
						<!-- 有超级管理员权限才显示订单管理按钮 -->
						<shiro:hasPermission name="supadmin:*">
							<li>
								<a href="saleOrderList.jsp" class="dropdown-toggle">
									<i class="icon-laptop"></i> 
									<span class="menu-text"> 订单管理</span>
								</a>
							</li>
						</shiro:hasPermission>
					
					</ul><!-- /.nav-list -->
					<!-- 侧边导航栏结束 -->

					<div class="sidebar-collapse" id="sidebar-collapse">
						<i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
					</div>

					<script type="text/javascript">
						try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
					</script>
				</div>

			<div class="main-content">
				<div class="breadcrumbs" id="breadcrumbs">
					<script type="text/javascript">
						try {ace.settings.check('breadcrumbs', 'fixed')} catch (e) {}
					</script>

					<ul class="breadcrumb">
						<li><i class="icon-home home-icon"></i> <a href="index.jsp">主页</a></li>

						<li class="active">员工管理</li>
					</ul>
					<!-- .breadcrumb -->
					<!-- 右侧搜索栏 -->
					<div class="nav-search" id="nav-search">
						<form class="form-search">
							<span class="input-icon"> <input type="text"
								placeholder="Search ..." class="nav-search-input"
								id="nav-search-input" autocomplete="off" /> <i
								class="icon-search nav-search-icon"></i>
							</span>
						</form>
					</div>
					<!-- #nav-search -->
				</div>

				<div class="page-content">
					<!-- 导航元素 -->
						<div class="col-sm-12">
							<div class="tabbable">
								<ul class="nav nav-tabs padding-12 tab-color-blue background-blue" id="myTab4">
									<li class="active">
										<a data-toggle="tab" href="#emplCate">员工类型管理</a>
									</li>

									<li>
										<a data-toggle="tab" href="#employee">具体员工管理</a>
									</li>
								</ul>

							<div class="tab-content">
								<div id="emplCate" class="tab-pane in active">
									<!-- 添加按钮 -->
									<div class="page-header">
										<div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
											<button class="btn btn-sm btn-info" data-toggle="modal"
												data-target="#addEC">
												<i class="icon-key bigger-120"> 添加新的员工类型</i>
											</button>
										</div>
									</div>
									<!-- /.page-header -->

									<div class="row">
										<div class="col-xs-12">
											<div class="table-responsive">
												<table id="ecTable" class="table table-striped table-hover">
													<thead>
													<tr>														
														<th>ID</th>
														<th>员工类型名称</th>
														<th>备注</th>
														<th>创建时间</th>
														<th>修改时间</th>
														<th>操作</th>
													</tr>
													</thead>
												 	<!-- 内容在js文件添加 -->
													<tbody></tbody>
												</table>
											</div>
										</div>
									</div>
								</div>

								<div id="employee" class="tab-pane">
									<!-- 添加按钮 -->
									<div class="page-header">
										<div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
											<button class="btn btn-sm btn-info" data-toggle="modal"
												data-target="#addEmployee">
												<i class="icon-key bigger-120"> 添加新的员工</i>
											</button>
										</div>
									</div>
									<!-- /.page-header -->
									
									<div class="row">
										<div class="col-xs-12">
											<table id="emplTable" class="table table-striped table-hover">
												<thead>
													<tr>
														<th>ID</th>
														<th>员工名称</th>
														<th>员工电话</th>
														<th>员工性别</th>
														<th>员工类型</th>
														<th>员工工资</th>
														<th>备注</th>
														<th>创建时间</th>
														<th>修改时间</th>
														<th>操作</th>
													</tr>
												</thead>
												<!-- 内容在js文件添加 -->
												<tbody></tbody>
											</table>
										</div>
									</div>
								</div>
							</div>

						</div>
						</div><!-- /span -->

					<!-- 添加员工类型的模态框 -->
					<div>
						<div class="modal fade" id="addEC" tabindex="-1"
							role="dialog" aria-labelledby="myModalLabel">
							<div class="modal-dialog" role="document">
								<div class="modal-content">
									<div class="modal-header">
										<button type="button" class="close" data-dismiss="modal"
											aria-label="Close">
											<span aria-hidden="true">&times;</span>
										</button>
										<h4 class="modal-title" id="myModalLabel">添加员工类型</h4>
									</div>
									<div class="modal-body">
										<div class="row">
											<div class="col-xs-12">
												<div class="form-group">
													<label class="col-sm-3"> 员工类型名称 </label> 
													<input type="text" placeholder="请填员工类型名称（必须）" id="ecName">
												</div>
												
												<div class="form-group">
													<label class="col-sm-3"> 备注 </label> 
													<input type="text" placeholder="请填写备注（可选）" id="ecRemark">
												</div>
											</div>
										</div>
									</div>
									<div class="modal-footer">
										<button type="button" class="btn btn-default"
											data-dismiss="modal">关闭</button>
										<button type="submit" onclick="saveEmplCate(this)"
											class="btn btn-primary">添加</button>
									</div>
								</div>
							</div>
						</div>
					</div><!-- 模态框结束 -->
					<!-- 添加员工的模态框 -->
					<div>
						<div class="modal fade" id="addEmployee" tabindex="-1"
							role="dialog" aria-labelledby="myModalLabel">
							<div class="modal-dialog" role="document">
								<div class="modal-content">
									<div class="modal-header">
										<button type="button" class="close" data-dismiss="modal"
											aria-label="Close">
											<span aria-hidden="true">&times;</span>
										</button>
										<h4 class="modal-title" id="myModalLabel">添加员工</h4>
									</div>
									<div class="modal-body">
										<div class="row">
											<div class="col-xs-12">
												<div class="form-group">
													<label class="col-sm-3"> 员工名称 </label> 
													<input type="text" placeholder="请填写员工名称（必须）" id="emplName">
												</div>
												<div class="form-group">
													<label class="col-sm-3"> 员工电话 </label> 
													<input type="text" placeholder="请填写员工电话（可选）" id="emplPhone">
												</div>
												<div class="form-group">
													<label class="col-sm-3"> 员工性别 </label> 
													<!-- <input type="text" placeholder="请填写员工性别（必须）" id="emplSex"> -->
													<select id="emplSex">
														<option value="男">男</option>
														<option value="女">女</option>
													</select>
												</div>
												<div class="form-group">
													<label class="col-sm-3"> 员工类型 </label> 
													<!-- <input type="text" placeholder="请填写员工类型（可选）" id="emplCate"> -->
													<select class="emplCate">
														
													</select>
												</div>
												<div class="form-group">
													<label class="col-sm-3"> 员工工资 </label> 
													<input type="number" placeholder="请填写员工工资（可选）" id="emplSalary">
												</div>
												<div class="form-group">
													<label class="col-sm-3"> 备注 </label> 
													<input type="text" placeholder="请填写员工备注（可选）" id="emplRemark">
												</div>
											</div>
										</div>
									</div>
									<div class="modal-footer">
										<button type="button" class="btn btn-default"
											data-dismiss="modal">关闭</button>
										<button type="submit" onclick="saveEmployee(this)"
											class="btn btn-primary">添加</button>
									</div>
								</div>
							</div>
						</div>
					</div><!-- 模态框结束 -->
					
					<!-- 员工类型&员工的修改模态框 -->
					<div id="moEC"></div>
					<div id="moEmpl"></div>

				</div><!-- /.page-content -->	
			</div><!-- /.main-content -->
				

				<div class="ace-settings-container" id="ace-settings-container">
					<div class="btn btn-app btn-xs btn-warning ace-settings-btn"
						id="ace-settings-btn">
						<i class="icon-cog bigger-150"></i>
					</div>

					<div class="ace-settings-box" id="ace-settings-box">
						<div>
							<div class="pull-left">
								<select id="skin-colorpicker" class="hide">
									<option data-skin="default" value="#438EB9">#438EB9</option>
									<option data-skin="skin-1" value="#222A2D">#222A2D</option>
									<option data-skin="skin-2" value="#C6487E">#C6487E</option>
									<option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>
								</select>
							</div>
							<span>&nbsp; Choose Skin</span>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2"
								id="ace-settings-navbar" /> <label class="lbl"
								for="ace-settings-navbar"> Fixed Navbar</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2"
								id="ace-settings-sidebar" /> <label class="lbl"
								for="ace-settings-sidebar"> Fixed Sidebar</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2"
								id="ace-settings-breadcrumbs" /> <label class="lbl"
								for="ace-settings-breadcrumbs"> Fixed Breadcrumbs</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2"
								id="ace-settings-rtl" /> <label class="lbl"
								for="ace-settings-rtl"> Right To Left (rtl)</label>
						</div>

						<div>
							<input type="checkbox" class="ace ace-checkbox-2"
								id="ace-settings-add-container" /> <label class="lbl"
								for="ace-settings-add-container"> Inside <b>.container</b>
							</label>
						</div>
					</div>
				</div>
				<!-- /#ace-settings-container -->
			</div>
			<!-- /.main-container-inner -->

			<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
				<i class="icon-double-angle-up icon-only bigger-110"></i>
			</a>
		</div><!-- /.main-container -->

		<!-- basic scripts -->

		<!--[if !IE]> -->

		<script src="assets\js\jquery-2.0.3.min.js"></script>

		<!-- <![endif]-->

		<!--[if IE]>
		<script src="assets\js\jquery-1.10.2.min.js"></script>
		<![endif]-->

		<!--[if !IE]> -->

		<script type="text/javascript">
			window.jQuery || document.write("<script src='assets/js/jquery-2.0.3.min.js'>"+"<"+"/script>");
		</script>

		<!-- <![endif]-->

		<!-- [if IE]>
		<script type="text/javascript">
		 window.jQuery || document.write("<script src='assets/js/jquery-1.10.2.min.js'>"+"<"+"/script>");
		</script>
		<![endif] -->

		<script type="text/javascript">
			if("ontouchend" in document) document.write("<script src='assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
		</script>
		<script src="assets/js/bootstrap.min.js"></script>
		<script src="assets/js/typeahead-bs2.min.js"></script>

		<!-- page specific plugin scripts -->

		<script src="assets/js/jquery.dataTables.min.js"></script>
		<script src="assets/js/jquery.dataTables.bootstrap.js"></script> 
	
		<!-- ace scripts -->

		<script src="assets/js/ace-elements.min.js"></script>
		<script src="assets/js/ace.min.js"></script>

		<!-- 加载自定义js文件 -->
		<script type="text/javascript" src="js/emplCate.js"></script>
		<script type="text/javascript" src="js/employee.js"></script>
		
</body>
</html>
<!-- <script>var _hmt = _hmt || [];(function(){var hm=document.createElement("script");hm.src = "//hm.baidu.com/hm.js?a43c39da34531f4da694d4499c5614d4";var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(hm, s);})();</script> -->